<template>
  <div class="dashboard">
    <el-table :data="list">
      <el-table-column prop="name" label="项目名称" min-width="180"></el-table-column>
      <el-table-column prop="address" label="链接" min-width="180">
        <template slot-scope="scope">
          <a :href="scope.row.address" target="_blank" class="dashboard-link">{{ scope.row.address }}</a>
        </template>
      </el-table-column>
      <el-table-column prop="desc" label="描述" min-width="180"></el-table-column>
      <el-table-column prop="version" label="最新版本" min-width="180"></el-table-column>
      <el-table-column prop="update" label="最近更新" min-width="180"></el-table-column>
    </el-table>
    <mt-button @click="checkError">错误日志</mt-button>
  </div>
</template>

<script>
export default {
  name: "Dashboard",

  data () {
    return {
      list: LINK
    };
  },

  created () {},

  methods: {
    checkError () {
      this.$router.push({ path:  "/errorlog/list" });
    }
  }
};
</script>

<style lang="scss" scoped>
@import "~@/styles/theme.scss";
.dashboard {
    &-link {
        text-decoration: underline;
        color: $mt-blue;
    }
}
</style>
